package com.cskaoyan.model.vo;

import com.cskaoyan.model.Brand;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ：王李轶群
 * @description：TODO
 * @date ：5/5/22 9:00 PM
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WxBrandDataVO {
    Integer limit;
    List<WxBrandVO> list;
    Integer page;
    Integer pages;
    Integer total;

    public static WxBrandDataVO data(long total, Integer pages, Integer limit, Integer page, List list) {
        WxBrandDataVO WxBrandDataVO = new WxBrandDataVO();
        WxBrandDataVO.setTotal((int) total);
        WxBrandDataVO.setPages(pages);
        WxBrandDataVO.setPage(page);
        WxBrandDataVO.setLimit(limit);
        WxBrandDataVO.setList(list);
        return WxBrandDataVO;
    }
}
